import request from '@/utils/request'

// 查询员工列表
export function selectAllSysUserPC(query) {
  return request({
    url: '/PC/SysUserPCController/selectAllSysUserPC',
    method: 'get',
    params:query
  })
}

// 查询单个员工详情
export function getUser(data) {
  return request({
    url: '/PC/SysUserPCController/selectOneSysUserPC',
    method: 'post',
    data:data
  })
}

// 新增员工
export function addUser(data) {
  return request({
    url: '/PC/SysUserPCController/insertSysUserPC',
    method: 'post',
    data: data
  })
}

// 修改员工列表信息
export function updateUser(data) {
  return request({
    url: '/PC/SysUserPCController/updateSysUser',
    method: 'post',
    data:data
  })
}
// 跟进客资列表
export function handleFollowKZ(userid) {
  return request({
    url: '/PC/SysUserPCController/selectAllKZ',
    method: 'post',
    data:{userid}
  })
}
// 搜索客资列表 
export function search(data) {
  return request({
    url: '/PC/ZkwlResourcePC/seletZkwlResourcePC',
    method: 'post',
    data: data
  })
}
// 查询客资列表
export function getkzlist(data) {
  return request({
    url: '/PC/ZkwlResourcePC/selectAll',
    method: 'post',
    data: data
  })
}
// 添加客资列表
export function insertkzlist(data) {
  return request({
    url: '/PC/ZkwlResourcePC/insertZkwlResourcePC',
    method: 'post',
    data: data
  })
}
// 批量删除客资列表
export function deletekzlist(data){
  return request({
    url:'/PC/ZkwlResourcePC/deleteZkwlResourcePC',
    method:'post',
    data:data
  })
}
// 新增员工列表推荐人账号下拉框
export function selectAllxL(data){
  return request({
    url:'/PC/SysUserPCController/selectAllxL',
    method:'post',
    data:data
  })
}
// 员工列表导出
export function excelyuangong(query){
  return request({
    url:'/PC/SysUserPCController/excelyuangong',
    method:'get',
    params:query
  })
}
// 获取用户身份
export function adminfindAllRole(data){
  return request({
    url:'/PC/SysUserPCController/adminfindAllRole',
    method:'post',
    data:data
  })
}